<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="css/public.css" rel="stylesheet">
    <link href="css/bootstrap.css" rel="stylesheet">
    <link href="css/compare.css" rel="stylesheet">
    <title>对比</title>
</head>
<body>


<div class="nav top">
    <ul class="nav navbar-nav navbar-right top-list">
        <li><a href="#">关于我们</a></li>
        <li><a href="#">联系方式</a></li>
        <li><a href="#">设为首页</a></li>
    </ul>
</div>

<div class="container main-container">
    <div class="nav-img">
        <img src="img/index-nav.png">
    </div>
    <div class="search">
        <form action="#" method="get">
            <div class="form-group">
                <input type="search" class="form-control">
                <button class="btn-default search-btn"></button>
            </div>
        </form>
    </div>

    <nav class="nav nav-main">

        <ul class="nav navbar-nav nav-list">
           <li><a href="index">首页</a></li>
             <li><a href="<c:url value='/AdminSeedServlet?method=addPre1'/>">上传产品</a></li>
           <li><a href="<c:url value='/SeedServlet?method=findAll'/>">产品列页</a></li>
            <li><a href="<c:url value='/CategoryServlet?method=findAll'/>">所有分类</a></li>
            <li><a href="<c:url value='/SeedServlet?method=messageGet'/>">留言板</a></li>
        </ul>
    </nav>

    <!--以上在后台设计的时候放到一个页面中，让别的页面去引用它-->


    <div class="row">

        <div class="col-md-9">
            <div class="panel panel-green">
                <div class="panel-heading">
                    <div class="panel-title">
                        对比
                    </div>
                </div>
                
				<table class="compare table table-bordered" style="margin-bottom:10px">
					
					<tr>
						<td>产品图片</td>
						<td><img src="upfile/${seedlist[0].image}"></td>
						<td><img src="upfile/${seedlist[1].image}"></td>
						<td><img src="upfile/${seedlist[2].image}"></td>
						<td><img src="upfile/${seedlist[3].image}"></td>
					</tr>
					<tr>
						<td>产品名称</td>
						<td>${seedlist[0].sname}</td>
						<td>${seedlist[1].sname}</td>
						<td>${seedlist[2].sname}</td>
						<td>${seedlist[3].sname}</td>
					</tr>
					<tr>
						<td>零售价</td>
						<td>${seedlist[0].price}</td>
						<td>${seedlist[1].price}</td>
						<td>${seedlist[2].price}</td>
						<td>${seedlist[3].price}</td>
					</tr>
					<tr>
						<td>品种编号</td>
						<td>${seedlist[0].sid}</td>
						<td>${seedlist[1].sid}</td>
						<td>${seedlist[2].sid}</td>
						<td>${seedlist[3].sid}</td>
					</tr>
					<tr>
						<td>包装规格</td>
						<td>${seedlist[0].large}</td>
						<td>${seedlist[1].large}</td>
						<td>${seedlist[2].large}</td>
						<td>${seedlist[3].large}</td>
					</tr>
					<tr>
						<td>特征特性</td>
						<td>${seedlist[0].xiangxi}</td>
						<td>${seedlist[1].xiangxi}</td>
						<td>${seedlist[2].xiangxi}</td>
						<td>${seedlist[3].xiangxi}</td>
					</tr>
					<tr>
						<td>栽培要点</td>
						<td>${seedlist[0].yaodian}</td>
						<td>${seedlist[1].yaodian}</td>
						<td>${seedlist[2].yaodian}</td>
						<td>${seedlist[3].yaodian}</td>
					</tr>
					<tr>
						<td>删除</td>
						<td><a href="<c:url value='/SeedServlet?method=deleteCompare&sid=${seedlist[0].sid}'/>">"删除</a></td>
						<<td><a href="/SeedServlet?method=deleteCompare?sid="+${seedlist[1].sid}>删除</a></td>
						<td><a href="/SeedServlet?method=deleteCompare?sid="+${seedlist[2].sid}>删除</a></td>
						<td><a href="/SeedServlet?method=deleteCompare?sid="+${seedlist[3].sid}>删除</a></td>
					
					</tr>
				</table>
		        
			
               
                
            </div>
        </div>
        <!--下列是一个右侧栏，设计的时候也要单独放一个文件中-->
        <div class="col-md-3">
            <div class="panel panel-green">
                <div class="panel-heading">
                    <div class="panel-title">
                        <span class="glyphicon glyphicon-tag">&nbsp;</span>叶菜类
                    </div>
                </div>
                <div class="panel panel-body recommend">
                    <ul>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                    </ul>
                </div>
            </div>


            <div class="panel panel-green">
                <div class="panel-heading">
                    <div class="panel-title">
                        <span class="glyphicon glyphicon-tag">&nbsp;</span>叶菜类
                    </div>
                </div>
                <div class="panel panel-body recommend">
                    <ul>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                    </ul>
                </div>
            </div>

            <div class="panel panel-green">
                <div class="panel-heading">
                    <div class="panel-title">
                        <span class="glyphicon glyphicon-tag">&nbsp;</span>叶菜类
                    </div>
                </div>
                <div class="panel panel-body recommend">
                    <ul>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                        <li><a href="#">白菜种子（品种：7个）</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>

</div>






<!--以下单独放单独引用-->
<div class="row">
    <div class="col-md-12">
        <div class="public-bottom">
            <div>
                <p>郑州轻工业学院科学大道166号 计算机与通信工程学院 电子信息工程学院 大学生科技创业中心 </p>
                <p style="text-align: center">联系电话：18790802327 &nbsp;&nbsp;&nbsp;版权所有：大学生科技创业中心</p>
            </div>
        </div>
    </div>
</div>
</div>
</body>
</html>